package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启动类
 */
@SpringBootApplication
@EnableEurekaClient //开启注册中心的客户端
//@EnableFeignClients(basePackages = {"com.qf.order.feign"})  //开启远程调用客户端（Feign）
@EnableFeignClients  //开启远程调用客户端（Feign）
//开启断路器
@EnableCircuitBreaker
//扫描过滤器所在包
@ServletComponentScan("com.qf.filter")
public class CustomerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomerApplication.class,args);
    }

}